import request from '@/utils/request'

// 查询酒店申请列表
export function listHotelApply(query) {
  return request({
    url: '/oa/hotelApply/list',
    method: 'get',
    params: query
  })
}

// 查询酒店申请详细
export function getHotelApply(id) {
  return request({
    url: '/oa/hotelApply/' + id,
    method: 'get'
  })
}

// 新增酒店申请
export function addHotelApply(data) {
  return request({
    url: '/oa/hotelApply',
    method: 'post',
    data: data
  })
}

// 修改酒店申请
export function updateHotelApply(data) {
  return request({
    url: '/oa/hotelApply',
    method: 'put',
    data: data
  })
}

// 删除酒店申请
export function delHotelApply(id) {
  return request({
    url: '/oa/hotelApply/' + id,
    method: 'delete'
  })
}
